package com.yq.bean;

import java.io.Serializable;
import java.sql.Date;

public class Employee implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer employee_id;
    private String employee_no;
    private String employee_name;
    private String login_name;
    private String pass_word;
    private String job;
    private Date hiredate;
    private double sal;
    private Integer role;

    public Employee(Integer employee_id, String employee_no, String employee_name, String login_name, String pass_word, String job, Date hiredate, double sal, Integer role) {
        this.employee_id = employee_id;
        this.employee_no = employee_no;
        this.employee_name = employee_name;
        this.login_name = login_name;
        this.pass_word = pass_word;
        this.job = job;
        this.hiredate = hiredate;
        this.sal = sal;
        this.role = role;
    }

    public Employee(String employee_no, String employee_name, String login_name, String pass_word, String job, Date hiredate, double sal, Integer role) {
        this.employee_no = employee_no;
        this.employee_name = employee_name;
        this.login_name = login_name;
        this.pass_word = pass_word;
        this.job = job;
        this.hiredate = hiredate;
        this.sal = sal;
        this.role = role;
    }

    public Employee() {
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getEmployee_id() {
        return employee_id;
    }

    public void setEmployee_id(Integer employee_id) {
        this.employee_id = employee_id;
    }

    public String getEmployee_no() {
        return employee_no;
    }

    public void setEmployee_no(String employee_no) {
        this.employee_no = employee_no;
    }

    public String getEmployee_name() {
        return employee_name;
    }

    public void setEmployee_name(String employee_name) {
        this.employee_name = employee_name;
    }

    public String getLogin_name() {
        return login_name;
    }

    public void setLogin_name(String login_name) {
        this.login_name = login_name;
    }

    public String getPass_word() {
        return pass_word;
    }

    public void setPass_word(String pass_word) {
        this.pass_word = pass_word;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "employee_id=" + employee_id +
                ", employee_no='" + employee_no + '\'' +
                ", employee_name='" + employee_name + '\'' +
                ", login_name='" + login_name + '\'' +
                ", pass_word='" + pass_word + '\'' +
                ", job='" + job + '\'' +
                ", hiredate=" + hiredate +
                ", sal=" + sal +
                ", role=" + role +
                '}';
    }
}
